load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

proto_library(
    name = "values_proto",
    srcs = ["values.proto"],
    deps = [
        "@com_google_protobuf//:duration_proto",
        "@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
    ],
)

go_proto_library(
    name = "values_go_proto",
    compilers = [
        "@io_bazel_rules_go//proto:gogofaster_proto",
    ],
    importpath = "github.com/bazelbuild/rules_go/examples/proto/gogo",
    proto = ":values_proto",
)

go_test(
    name = "gogo_test",
    srcs = ["gogo_test.go"],
    deps = [
        ":values_go_proto",
    ],
)
